﻿//-----------------------------------------------------------------------
// <copyright file="CssDefinition.cs" company="Erik Lieben">
//     Copyright Erik Lieben. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace ErikLieben.CssPreprocessor
{
    using System.Collections.ObjectModel;

    /// <summary>
    /// The data object to store a css definition, which can be multiple selectors and multiple properties
    /// </summary>
    public class CssDefinition
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CssDefinition"/> class.
        /// </summary>
        public CssDefinition()
        {
            Selectors = new Collection<CssSelector>();
            Properties = new Collection<CssProperty>();
        }

        /// <summary>
        /// Gets or sets the selectors that the properties apply to.
        /// </summary>
        /// <value>The selector that the properties apply to.</value>
        public Collection<CssSelector> Selectors { get; set; }
        
        /// <summary>
        /// Gets or sets the properties that apply to the selector.
        /// </summary>
        /// <value>The properties that the selector applies to.</value>
        public Collection<CssProperty> Properties { get; set; }
    }
}
